
.top-bar-wrapper{
    background-color: #000;
}
.top-bar{
    max-width: 1200px;
    margin: 0 auto;
    height: 48px;
    background-color: #000;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

a{
    text-decoration: none;
    color: #fff;
    &:hover{
        color: rgb(197, 196, 196);
    }
}

.left-menu{
    &:active{
        .nav{
            display: block;
        }
    }

    .nav{
        display: none;
        position: absolute;
        top: 48px;
        left: 0;bottom: 0;right: 0;
        background-color: #000;
        padding-top: 60px;
        li{
            width: 80%;
            margin: 0 auto;
            border-bottom: 1px solid #4e4e4e;
            a{
                display: block;
                line-height: 44px;
                font-size: 14px;
            }

            &:last-child a{
                margin-right: 6px;
                display: inline-block;
            }
            span{
                color: #fff;
                font-size: 14px;
            }
            
        }
    }

    .menu-icon{
        width: 18px;
        height: 48px;
        position: relative;
        li{
            width: 18px;
            height: 1px;
            background-color: #fff;
            position: absolute;
            transform-origin: left center;
            transition: 0.5s;
        }
        li:nth-child(1){
            top:18px;
        }
        li:nth-child(2){
            top:24px;
        }
        li:nth-child(3){
            top:30px;
        }
        &:active{
            li:nth-child(1){
                transform: rotateZ(40deg);
            }
            li:nth-child(2){
                opacity: 0;
            }
            li:nth-child(3){
                transform: rotateZ(-40deg);
            }
        }
    }
}

.logo{
    a{
        color: rgb(225, 11, 118);
        // text-indent: -9999px;
        // display: block;
        // width: 122px;
        // height: 32px;
        // background-image: url(logo-white.@f94af395.png);
        
    }
}

//屏幕尺寸发生变化改变样式
@media only screen {
    @media (min-width: 768px){ //屏幕大于768样式
        .left-menu{
            order: 2; //顺序调整
            flex: auto;
            .nav{
                display: flex;
                position: static;
                padding: 0;
                justify-content: space-around;
                li{
                    width: auto;
                    border-bottom: none;
                    margin: 0;
                    a{
                        line-height: 48px;
                    }
                    span{
                        display: none;
                    }
                }
            }
            .menu-icon{
                display: none;
            }
        }
        .logo{
            order: 1; //顺序调整
        }
        .user-info{
            order: 3; //顺序调整
        }
    }
}